//
//  YSMainNavViewController.m
//  YSZC
//
//  Created by 张斌 on 16/4/11.
//  Copyright © 2016年 YueShiKeJi. All rights reserved.
//

#import "YSMainNavViewController.h"

@interface YSMainNavViewController ()

@end

@implementation YSMainNavViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    [[UINavigationBar appearance] setBarTintColor:[UIColor colorWithRed:249/255.0 green:60/255.0 blue:71/255.0 alpha:1]];
    
    [[UINavigationBar appearance] setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor whiteColor]}];
    
    [[UINavigationBar appearance] setTintColor:[UIColor whiteColor]];
    
    
}

//- (void)viewWillAppear:(BOOL)animated{
//    [super viewWillAppear:animated];
//    [self.navigationController.navigationBar setBarTintColor:[UIColor colorWithRed:255/255.0 green:85/255.0 blue:89/255.0 alpha:1.000]];
//    
//    [self.navigationController.navigationBar setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIColor whiteColor],UITextAttributeTextColor,nil]];
//}
//
//- (void)viewDidAppear:(BOOL)animated{
//    
//    [super viewDidAppear:animated];
//    [self.navigationController.navigationBar setBarTintColor:[UIColor colorWithRed:255/255.0 green:85/255.0 blue:89/255.0 alpha:1.000]];
//    
//        [self.navigationController.navigationBar setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIColor whiteColor],UITextAttributeTextColor,nil]];
//}
@end
